﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SiteAdminListVisitorFeedbacks.aspx.cs" Inherits="DasIdeen.Pages.SiteAdminListVisitorFeedbacks" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="margin-top: 10px">
        <h3>
            Visitors Feedback List :</h3>
        <hr />
        <p>
            The following list shows, list of user who has given a feedback.</p>
    </div>
    <asp:Label ID="lblMessage" runat="server" Text="" Style="color: Maroon"></asp:Label>
    <div id="ContentFeedbackList" style="margin-top: 20px; margin-bottom: 15px">
        <asp:GridView ID="gdvContentFeedbackList" DataKeyNames="FeedbackKey" runat="server"
            CellPadding="7" AllowSorting="true" Width="900px" AutoGenerateColumns="False"
            OnPageIndexChanging="gdvContentFeedbackList_PageIndexChanging" OnRowDataBound="gvdFeedbackList_DataBound" PageSize="50"
            FooterStyle-BackColor="#333333" FooterStyle-ForeColor="#F2F2F2" FooterStyle-Height="25px">
            <HeaderStyle BackColor="#859f22" Font-Size="13px" ForeColor="#FFFFFF" CssClass="gridHeaderStyle" />
            <Columns>
                <asp:TemplateField  HeaderStyle-CssClass="gridHeaderStyle" HeaderText="Feedback User Name">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkFeedbackId" runat="server" CssClass="texthover" PostBackUrl='<%# Bind("FeedbackUserName", "~/Pages/SiteAdminListVisitorFeedbacks.aspx?Id={0}") %>' title="Click here to get full details"
                            Style="text-decoration: underline; font-size: 13px; padding-left:5px; color: #3B67B2;
                            outline: none" OnClick="lnkFeedbackId_Click"><%# Eval("FeedbackUserName")%></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="FeedbackUserEmail" HeaderText="Feedback UserEmail" SortExpression="FeedbackUserEmail"
                    HeaderStyle-CssClass="gridHeaderStyle" />
                <asp:BoundField DataField="FeedbackText" HeaderText="Feedback Text" SortExpression="FeedbackText"
                    HeaderStyle-CssClass="gridHeaderStyle" >
                    <ItemStyle CssClass="GridView" />
                </asp:BoundField>
                <asp:BoundField DataField="FeedbackDate" HeaderText="Feedback Date" SortExpression="ErrorDate"
                    DataFormatString="{0:d}" HeaderStyle-CssClass="gridHeaderStyle" />
            </Columns>
        </asp:GridView>
        <div style="width:850px; text-align:right;margin:10px auto">
         <asp:Button ID="btnDownload" class="CSSButton" Style="width: 245px"
            runat="server" Text="Download Records In ExcelSheet" OnClick="btnDownload_Click" />
            </div>
        <asp:Label ID="lblresult" runat="server" />
        <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
    </div>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup"
        PopupControlID="pnlpopup" CancelControlID="btnRemove" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <asp:Panel ID="pnlpopup" runat="server" Style="display: none;width:auto; max-width:965px; padding: 0px"
        CssClass="modalPopup">
         <div class="PopupHeaderStyle">
            <h2 style=" color: #FFFFFF;float:left;margin:3px 25px; text-align: center">Feedback Details</h2>
            <div style="text-align: right; font-size: 14px; font-weight: 700;padding-top:5px"><a id="btnRemove">X</a></div>
        </div>
        <table>
            <tr>
                <td valign="top" class="TDCss">
                    Feedback User Name:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblFeedbackUserName" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Feedback User Email:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblFeedbackUserEmail" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Feedback Date:
                </td>
                <td valign="top">
                    <div class="DivPopupContent">
                        <asp:Label ID="lblFeedbackDate" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" class="TDCss">
                    Feedback Text:
                </td>
                <td valign="top">
                    <div class="PopUpLargeContentTextBox">
                        <asp:Label ID="lblFeedbackText" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
